import request from '@/utils/requestExam'

//生成考试信息
export function createExam(data){
    return request({
        url: "/api/uf/boostor/exam/ExamRest/createExam/v1",
        method: "post",
        data: data
    })
}

//取考试试卷试题
export function getExamPaperQuestion(data){
    return request({
        url: "/api/uf/boostor/exam/ExamRest/getExamPaperQuestion/v1",
        method: "post",
        data: data
    })
}

// 提交试卷
export function submitPaper(data){
    return request({
        url: "/api/uf/boostor/exam/ExamRest/submitPaper/v1",
        method: "post",
        data: data
    })
}

// 获取答题结果
export function getAnswerResult(scoreId) {
    return request({
        url: "/api/uf/boostor/exam/ExamRest/getAnswerResult/" + scoreId,
        method: 'get'
    })
}

// 获取试题解析
export function getQuestionResult(scoreId) {
    return request({
        url: "/api/uf/boostor/exam/ExamRest/getQuestionResult/" + scoreId,
        method: 'get'
    })
}

